package com.primb.bench.project.home.entity;

/**
 * Created by Chen on 2017/7/25.
 * 功能描述：
 */

public class RequestObjectEntity {
    int start = 0;
    int limit = 20;
    int page = 0;
    String priceId;

    public String getPriceId() {
        return priceId;
    }

    public void setPriceId(String priceId) {
        this.priceId = priceId;
    }

    public int getStart() {
        return start;
    }


    public int getLimit() {
        return limit;
    }

    public void rePage() {
        this.page = 0;
        this.start = 0;
    }

    public void reSet() {
        this.page = 0;
        this.start = 0;
    }

    public void setPageAdd() {
        this.page++;
        this.start = limit * page;
    }

    public void setPageReduce() {
        this.page--;
        this.start = limit * page;
    }
}
